package com.cy.pj.sys.service.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Pointcut;

public class SysClearCache {
    @Pointcut("@annotation(com.cy.pj.sys.service.aspect.ClearCache)")
    public void doClearCache() {
    }

    @Around("doClearCache()")
    public Object around(ProceedingJoinPoint jp)
            throws Throwable {
        System.out.println("heloo");
        Object obj = jp.proceed();
        return obj;
    }
}
